<?php

class Application_Form_Comment extends Zend_Form {

    public function init() {

        $content = new Zend_Form_Element_Textarea('content', array(
                    'label' => 'Treść',
                    'class' => 'content'
                ));
        $content->setRequired(true);

        $this->addDisplayGroup(array(
            $content
                ), 'gr-main');
        $submit = new Zend_Form_Element_Submit('submit', array(
                    'label' => 'Wyślij',
                    'class' => 'ui-form-button'
                ));
        
        $back = new Zend_Form_Element_Button('back', array(
                    'label' => 'Powrót',
                    'class' => 'ui-form-button goback'
                ));
        $back->setDecorators(array('ViewHelper'));
        $submit->setDecorators(array('ViewHelper'));

        $this->addDisplayGroup(array(
            $back, $submit
                ), 'gr-submit', array(
            'order' => 999
        ));
    }

}

